﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>楼层管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <link href="css/plugins/jsTree/style.min.css" rel="stylesheet">
        <!-- Sweet Alert -->
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <!-- custom -->
    <link href="css/add-style.css" rel="stylesheet">
</head>

<body class="gray-bg">
	<div class="row">
		<div class="col-sm-12">
			<div class="ibox float-e-margins">
				<div class="tabs-container">
					<ul class="nav nav-tabs" id="myTab">
						<li class="active">
							<a data-toggle="tab" href="#tab-1"><i class="fa fa-user"></i>楼层信息列表</a>
						</li>
						<li class="">
							<a data-toggle="tab" href="#tab-2"><i class="fa fa-user"></i>楼层信息添加</a>
						</li>
					</ul>
					<div class="panel-body no-top-border">
						<div class="tab-content">
							<div id="tab-1" class="tab-pane active">
                                <table class="table table-border0">
                                    <tr>
                                        <td class="client-link text-right">搜索范围：</td>
                                        <td>
                                            <div class="input-group">
                                                <input type="text" placeholder="请选择..." class="input-sm form-control" style="width:300px;" value="1号楼">
                                                <a data-toggle="modal" href="storage_in.html#modal-goodtypetree" class="btn btn-success btn-sm"><i class="fa fa-check-square-o"></i>&nbsp;选择 </a>
                                            </div>
                                        </td>

                                    </tr>
                                </table>
                                <div class="form-group">
                                    <div class="row">
                                        <div>
                                            <div class="input-group form-group-sm pull-left" style="padding-left:20px;">

                                                <span class="input-group-btn">
                                                    <button type="button" class="btn btn-success btn-sm"><i class="fa fa-search"></i>&nbsp;查询</button>
                                                    <a data-toggle="modal" href="buildings.html#modal-import" class="btn btn-success btn-sm" style="margin-left: 10px;"><i class="fa fa-inr"></i>&nbsp;导入 </a>
                                                    <a href="attachment/地区公司项目资源导入模板.xlsx" class="btn btn-success btn-sm" style="margin-left: 10px;"><i class="fa fa-inr"></i>&nbsp;导出 </a>
                                                    <!--<a data-toggle="modal" href="buildings.html#modal-remark" class="btn btn-danger btn-sm" style="margin-left: 10px;"><i class="fa fa-dollar"></i> &nbsp;功能说明 </a>-->
                                                </span>

                                            </div>
                                        </div>

                                    </div>
                                </div>
                                <table class="table table-bordered">
                                    <thead>
                                        <tr>
                                            <th><input type="checkbox" /></th>
                                            <th>序号</th>
                                            <th>楼址</th>
                                            <th>楼层名称</th>
                                            <th>取得土地所有权日期</th>
                                            <th>楼层数</th>
                                            <th>住户数</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td><input type="checkbox" /></td>
                                            <td>1</td>
                                            <td>华北区域 - 北京公司- 富力湾服务中心 - 富力湾 - 1号楼</td>
                                            <td>负1层</td>
                                            <td>2015年5月6日</td>
                                            <td>12</td>
                                            <td>100</td>
                                            <td>
                                                <div class="btn-group">
                                                    <a href="#" class="text-warning btn-edit" >修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                                    <a href="javascript:;" class="text-danger demo4">删除</a>
                                                </div>

                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                                <div class="text-right">
                                    <ul class="pagination">
                                        <li><a href="#">«</a></li>
                                        <li><a href="#">1</a></li>
                                        <li><a href="#">2</a></li>
                                        <li><a href="#">3</a></li>
                                        <li><a href="#">4</a></li>
                                        <li><a href="#">5</a></li>
                                        <li><a href="#">»</a></li>
                                        <li><a href="#">页数：1/10</a></li>
                                        <li><a href="#">总记录数：1000</a></li>
                                    </ul>
                                </div>
							</div>
							<div id="tab-2" class="tab-pane">
                                <table class="table table-hover table-border0">
                                    <tbody>
                                        <tr>
                                            <td class="client-link" width="15%;">所在楼栋*：</td>
                                            <td colspan="3">
                                                华北区域-北京-富力家园服务中心-富力家园-楼栋1
                                            </td>
                                            
                                        </tr>
                                        <tr>
                                            <td class="client-link">楼层名称*：</td>
                                            <td colspan="3">
                                                <input type="text" class="form-control input-sm input-group" placeholder="请输入楼层名称" value="">
                                            </td>
                                            
                                        </tr>
                                        <tr>
                                            <td class="client-link">排序号*：</td>
                                            <td>
                                                <input type="text" class="form-control input-sm input-group" placeholder="数字类型" value="">
                                            </td>

                                        </tr>
                                        <tr>
                                            <td class="client-link"></td>
                                            <td colspan="3">
                                                <button type="button" class="btn btn-danger btn-sm" onclick="tabActive1();"><i class="fa fa-save"></i>&nbsp;保存</button>
                                                <button type="button" class="btn btn-success btn-sm" onclick="tabActive1();"><i class="fa fa-arrow-up"></i>&nbsp;返回</button>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

    <div id="modal-goodtypetree" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h5 class="modal-title">选择搜索范围</h5>
                </div>
                <div class="modal-body">
                    <div id="jstree3" style="margin: 10px 0 0 -10px;">
                        <ul>
                            <li class="jstree-open">
                                富力物业服务集团
                                <ul>
                                    <li class="jstree-open" data-jstree='{"type":"icon"}'>
                                        华北区域
                                        <ul>
                                            <li data-jstree='{"type":"icon"}'>
                                                北京
                                                <ul>
                                                    <li data-jstree='{"type":"son"}'>
                                                        富力家园服务中心
                                                        <ul>
                                                            <li data-jstree='{"type":"son"}'>
                                                                富力家园
                                                                <ul>
                                                                    <li data-jstree='{"type":"son"}'>
                                                                        1号楼
                                                                        <ul>
                                                                            <li data-jstree='{"type":"son"}'>负1层</li>
                                                                            <li data-jstree='{"type":"son"}'>负2层</li>
                                                                            <li data-jstree='{"type":"son"}'>负3层</li>
                                                                            <li data-jstree='{"type":"son"}'>1层</li>
                                                                            <li data-jstree='{"type":"son"}'>2层</li>
                                                                            <li data-jstree='{"type":"son"}'>3层</li>
                                                                        </ul>
                                                                    </li>
                                                                </ul>
                                                            </li>
                                                        </ul>
                                                    </li>
                                                </ul>
                                            </li>
                                            <li data-jstree='{"type":"icon"}'>
                                                天津
                                                <ul>
                                                    <li class="jstree-open" data-jstree='{"type":"son"}'>
                                                        合力园服务中心
                                                    </li>
                                                </ul>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        华南区域
                                        <ul>
                                            <li>
                                                广州-住宅
                                                <ul>
                                                    <li class="jstree-open" data-jstree='{"type":"son"}'>
                                                        东堤湾&天兴大厦服务中心
                                                    </li>
                                                </ul>
                                            </li>
                                        </ul>
                                    </li>


                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary demo2" data-dismiss="modal">确定</button>
                    <!--<button type="button" class="btn btn-primary demo2">确定</button>-->
                </div>
            </div>
        </div>
    </div>

    <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>

    
    <script>
        $(document).ready(function () {
            $("#data_5 .input-daterange").datepicker({
                keyboardNavigation: false,
                forceParse: false,
                autoclose: true
            });
            //$("#data_4 .input-group.date").datepicker({ format: 'yyyy', startView: 2, minViewMode: 2, keyboardNavigation: false, forceParse: false, autoclose: true, todayHighlight: true });

        });
    </script>

    <!-- jsTree plugin javascript -->
    <script src="js/plugins/jsTree/jstree.min.js"></script>

    <style>
        .jstree-open > .jstree-anchor > .fa-folder:before {
            content: "\f07c";
        }

        .jstree-default .jstree-icon.none {
            width: 0;
        }
    </style>
    <!--控制页面树元素-->
    <script>
        $(document).ready(function () {
            function demo_rename() {
                var ref = $('#jstree2').jstree(true),
                    sel = ref.get_selected();
                if (!sel.length) { return false; }
                sel = sel[0];
                ref.edit(sel);
            };
            $('#jstree2').jstree({
                'core': {
                    'check_callback': true,
					'data' : {
						'url' : '/js/demo/tree2.json',
						'data' : function (node) {
							return { 'id' : node.id };
						}
					}
                },
                'plugins': ['types', 'dnd'],
                'types': {
                    'default': {
                        'icon': 'fa fa-folder'
                    },
                    'html': {
                        'icon': 'fa fa-file-code-o'
                    },
                    'svg': {
                        'icon': 'fa fa-file-picture-o'
                    },
                    'css': {
                        'icon': 'fa fa-file-code-o'
                    },
                    'img': {
                        'icon': 'fa fa-file-image-o'
                    },
                    'son': {
                        'icon': 'fa fa-file-text-o'
                    }

                }
			});
        });


    </script>

    <script>
        $(document).ready(function () {
            function demo_rename() {
                var ref = $('#jstree3').jstree(true),
                    sel = ref.get_selected();
                if (!sel.length) { return false; }
                sel = sel[0];
                ref.edit(sel);
            };
            $('#jstree3').jstree({
                'core': {
                    'check_callback': true
                },
                'plugins': ['types', 'dnd'],
                'types': {
                    'default': {
                        'icon': 'fa fa-folder'
                    },
                    'html': {
                        'icon': 'fa fa-file-code-o'
                    },
                    'svg': {
                        'icon': 'fa fa-file-picture-o'
                    },
                    'css': {
                        'icon': 'fa fa-file-code-o'
                    },
                    'img': {
                        'icon': 'fa fa-file-image-o'
                    },
                    'son': {
                        'icon': 'fa fa-file-text-o'
                    }

                }
            });
        });


    </script>

    <!-- 自定义js -->
    <script src="js/content.js?v=1.0.0"></script>
    <script type="text/javascript">
   // 使页面中所有.modal元素在窗口可视范围之内居中

        function centerModals() {
            $('.modal').each(function (i) {
                var $clone = $(this).clone().css('display', 'block').appendTo('body');
                var top = Math.round(($clone.height() - $clone.find('.modal-content').height()) / 2);
                top = top > 50 ? top : 0;
                $clone.remove();
                $(this).find('.modal-content').css("margin-top", top - 50);
            });
        }
        // 在模态框出现的时候调用垂直居中函数

        $('.modal').on('show.bs.modal', centerModals);
        // 在窗口大小改变的时候调用垂直居中函数

        $(window).on('resize', centerModals);

    
       //--动画效果--
        $(document).ready(function () {
            $('.contact-box').each(function () {
                animationHover(this, 'pulse');
            });
			$('#tab-1 .btn-edit').click(function () {
				$('a[href="#tab-2"]').tab('show');
			})

			
        });

        function tabActive() {
            $('#myTab a[href="#tab-2"]').tab('show');
        }
        function tabActive1() {
            $('#myTab a[href="#tab-1"]').tab('show');
        }
    </script>
    <!-- Data picker -->
    <script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>
    <!-- layerDate plugin javascript -->
    <script src="js/plugins/layer/laydate/laydate.js"></script>
    <script>
        var start = {
            elem: "#start",
            format: "YYYY/MM/DD hh:mm:ss",
            min: laydate.now(),
            max: "2099-06-16 12:20:20",
            istime: true,
            istoday: true,
            choose: function (a) {
                end.min = a;
                end.start = a
            }
        };
        var end = {
            elem: "#end",
            format: "YYYY/MM/DD hh:mm:ss",
            min: laydate.now(),
            max: "2099-06-16 13:20:20",
            istime: true,
            istoday: true,
            choose: function (a) {
                start.max = a
            }
        };
        laydate(start);
        laydate(end);
    </script>


       <!-- Sweet alert -->
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    <script>
        //-- 小弹框--
        $('.demo2').click(function () {

            //swal({
            //    title: "保存成功！",
            //    type: "success"
            //});
        });

        $('.demo4').click(function () {
            swal({
                title: "您确定要删除这条信息吗",
                text: "删除后将无法恢复，请谨慎操作！",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "删除",
                closeOnConfirm: false
            }, function () {
                swal("删除成功！", "您已经永久删除了这条信息。", "success");
            });
        });
    </script>
</body>

</html>
